# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=ophcrack
pkgver=3.8.0
pkgrel=0
pkgdesc="Windows password cracker based on rainbow tables"
url="http://ophcrack.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="expat-dev openssl-dev"
source="https://downloads.sourceforge.net/project/ophcrack/ophcrack/$pkgver/ophcrack-$pkgver.tar.bz2
	"
options="!check" # No testsuite

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--prefix=/usr \
		--disable-gui
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="c66276b72299744d3e0c9fc14220c7f568e383bd324c1ede228bda5d51da78db817388421c9f5f8cd2f18687e7e53cfb0c65bcc0354b3d55ac16324c61f62dbd  ophcrack-3.8.0.tar.bz2"
